package main

const chinesePrefix = "你好, "
const englishPrefix = "Hello, "

// Hello is a function
func Hello(name string, language string) string {
	if name=="" {
		name = "World"
	}
    return getPrefix(language) + name
}

func getPrefix(language string) (prefix string) {
	switch language{
	case "chinese":
		prefix = chinesePrefix
	default:
		prefix = englishPrefix
	}
	return
}